<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page session="false"%>
	
<link rel="stylesheet" href='<c:url value="/css/screen.css" />'/>
<link rel="stylesheet" href='<c:url value="/css/wizarform.css" />'/>
<script type="text/javascript" src='<c:url value="/js/formToWizard.js"/>'/></script>

<script type="text/javascript"> 
   	
       $(document).ready(function(){

			//Tomo el valor de fecha que corresponda en consonancia con el idioma seleccionado
			<c:choose>  
				<c:when test="${pageContext.response.locale.language ne 'es'}">
				 	$("#fechades").datepicker({dateFormat: 'yy/mm/dd', changeYear: true,yearRange: "-100:+0"});  		  
				</c:when> 		    	
				<c:otherwise>  
					$("#fechades").datepicker({dateFormat: 'dd/mm/yy', changeYear: true,yearRange: "-100:+0"})				
				</c:otherwise>
			</c:choose>

			<c:choose>
				<c:when test="${pageContext.response.locale.language ne 'es'}">
		 			$("#fechahas").datepicker({dateFormat: 'yy/mm/dd', changeYear: true,yearRange: "-100:+0"});  		  
				</c:when> 		    	
				<c:otherwise>  
					$("#fechahas").datepicker({dateFormat: 'dd/mm/yy', changeYear: true,yearRange: "-100:+0"})				
				</c:otherwise>
			</c:choose> 
	  

	       //*********** wizard ************************************
           $("#pasosForm").formToWizard({ submitButton: 'Guardar' })
           //Validamos el formulario cuando se realize el submit
           $("#pasosForm").validate();
       });

    </script>


  	<script 
		src='<c:url value="/js/jspropios/jt.listainfproc.js"/>'>
	</script>

	<%@page session="false"%> 
	
			<article id="content" Style="padding-top:0px">
				<div>
				<section class="col-1-3">
					<div class="wrap-col">
						<%if(request.getHeader("Referer") != null)
						{%>
   							<a id="volver"  title="VOLVER"onclick="history.go(-1); return false;" href="#"></a>
						<%}%>
						<h2 class="under" >Busqueda</h2><br>
						<form:form modelAttribute="solicitudesForm">						
						<div  class="pagform">
							<label style="margin: 0px;" for="usuario" >Usuario</label>
					        <form:select  path="usuarioid" id="usuarioid" class="input" Style="height: auto;">
							    <form:options items="${solicitudesForm.usuarios}" />
							</form:select>
							
							<label for="fechades" class="">Fecha desde:</label>
					        <form:input id="fechades" path="fechades" class="input" type="text"/>

							<label for="fechahas" class="">Fecha hasta:</label>
					        <form:input id="fechahas" path="fechahas" class="input" type="text"/>
					        
					        <input style="height: 28px;" id="botonbuscar" type="submit" class="ejecutar" value="<spring:message code="crs_boton_buscar"/>" />
       					</div>
					    </form:form>
					</div>
				</section>				
				
				<section class="col-2-3">
					<div class="wrap-col">
						<h2 class="under"><spring:message code="crs.med.inf.rdos"/><span Style="text-transform: uppercase;"></span></h2>
				        <div>       
            					<div id="TablaListaSolicitudes" style="width:99%;"></div>
       					</div>				
					       
					</div>
				</section>	
				</div>

			</article>
		</div>
	</div>